Free more nodes on the tree when we nuke a tag. Approved by Ron.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 17 Apr 2003 05:12:11 +0000 (05:12 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 17 Apr 2003 05:12:11 +0000 (05:12 +0000)
gpsbabel/gpx.c

index 6460378a41d59bb93e735ef50d69a79ad1aee762..636ed600b82ac8def786675ee493bf551cd1bb32 100644 (file)
@@ -881,6 +881,12 @@ void free_gpx_extras( xml_tag *tag )
                if (tag->parentcdata) {
                        xfree(tag->parentcdata);
                }
+               if (tag->tagname) {
+                       xfree(tag->tagname);
+               }
+               if (tag->attributes) {
+                       xfree(tag->attributes);
+               }
                next = tag->sibling;
                xfree(tag);
                tag = next;